import request from '@/utils/request'

// 查询监控视频配置列表
export function listCameraConfig(query) {
    return request({
        url: '/wanzhi/cameraConfig/list',
        method: 'get',
        params: query
    })
}

// 查询监控视频配置详细
export function getCameraConfig(id) {
    return request({
        url: '/wanzhi/cameraConfig/' + id,
        method: 'get'
    })
}

// 新增监控视频配置
export function addCameraConfig(data) {
    return request({
        url: '/wanzhi/cameraConfig',
        method: 'post',
        data: data
    })
}

// 修改监控视频配置
export function updateCameraConfig(data) {
    return request({
        url: '/wanzhi/cameraConfig',
        method: 'put',
        data: data
    })
}

// 删除监控视频配置
export function delCameraConfig(id) {
    return request({
        url: '/wanzhi/cameraConfig/' + id,
        method: 'delete'
    })
}
